package com.example.suntest.service3;

import java.util.List;

/**
 * @version 1.0
 * @Package: com.example.suntest.service3
 * @ClassName: Converter
 * @Author: sgq
 * @Date: 2024/7/11 9:27
 * @Description: TODD
 */
public interface Converter<S, T> {
    /**
     * 对象转换
     * @param source
     * @return
     */
    T convert(S source);

    /**
     * 对象批量转换
     * @param sources
     * @return
     */
    List<T> batchConvert(List<S> sources);
}
